package com.java.dto;

import com.java.entity.Employee;

import java.util.List;

public class SelectEmployeeAndEmployeeDTO {
    private int deptno;
    private String dname;
    private String loc;
    private List<Employee> employee;

    public SelectEmployeeAndEmployeeDTO() {
    }

    public SelectEmployeeAndEmployeeDTO(int deptno, String dname, String loc, List<Employee> employee) {
        this.deptno = deptno;
        this.dname = dname;
        this.loc = loc;
        this.employee = employee;
    }

    public int getDeptno() {
        return deptno;
    }

    public void setDeptno(int deptno) {
        this.deptno = deptno;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }

    public List<Employee> getEmployee() {
        return employee;
    }

    public void setEmployee(List<Employee> employee) {
        this.employee = employee;
    }

    @Override
    public String toString() {
        return "selectEmployeeAndEmployeeDTO{" +
                "deptno=" + deptno +
                ", dname='" + dname + '\'' +
                ", loc='" + loc + '\'' +
                ", employee=" + employee +
                '}';
    }
}
